package com.xiaoshuidi.cloud.module.rooms.convert.roomreservationconfig;

import com.xiaoshuidi.cloud.module.rooms.controller.admin.reservation.vo.*;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomReservationConfig;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Author Feng
 * @date 2023/5/11
 */
@Mapper
public interface RoomReservationConfigConvert {


    RoomReservationConfigConvert INSTANCE = Mappers.getMapper(RoomReservationConfigConvert.class);

    RoomReservationConfig convert(ReservationConfigUpdateReq req);

    ReservationConfigResp convert(RoomReservationConfig bean);

    RoomReservationConfig convert(ReservationConfigCreateReq req);

    ReservationConfigGetResp transform(RoomReservationConfig bean);
}
